from django.shortcuts import render
from django.views import View
from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView

from .models import ClassInfoFront
from .serializer import ClassFrontSerializer
# Create your views here.



class ClassFrontInfo(APIView):
    def get(self,request):
        classfrontinfo=ClassInfoFront.objects.all()
        serializer=ClassFrontSerializer(instance=classfrontinfo,many=True)
        return Response(serializer.data,status=status.HTTP_200_OK)

